package cn.ppool.test.utils.db_util;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.util.Date;

@Data
@MappedSuperclass
public class BaseBean {
    @Id
    @GenericGenerator(name = "id", strategy = "org.hibernate.id.Assigned")
    private Long id;

    private Date createTime;
    private Date updateTime;
}
